package cn.edu.bzu.ie.sf.mealsmisweb.service.impl;

import cn.edu.bzu.ie.sf.mealsmisweb.entity.ApkVersion;
import cn.edu.bzu.ie.sf.mealsmisweb.mapper.ApkVersionMapper;
import cn.edu.bzu.ie.sf.mealsmisweb.service.ApkVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 版本信息业务实现类
 * @author 宋锋
 * @date 2019-03-22 14:44
 */
@Repository
public class ApkVersionServiceImpl implements ApkVersionService {
    @Autowired
    private ApkVersionMapper mapper;    //mapper实例

    //取得最新的一条版本信息的方法
    @Override
    public ApkVersion getTop1ApkVersion() {
        return mapper.getTop1ApkVersion();
    }

    //更新最新的一条版本信息的方法
    @Override
    public int updateTop1ApkVersion(ApkVersion obj) {
        return mapper.updateTop1ApkVersion(obj);
    }
}
